import server from "../utils/request";
// 数据概况列表
export function database_list(payload = {}) {
    return server.get('/xfy/api/database', { params: payload })
}
// 年龄构成
export function ages_list(payload = {}) {
    return server.get('/xfy/api/ages', { params: payload })
}
// 学历构成
export function educate_list(payload = {}) {
    return server.get('/xfy/api/educate', { params: payload })
}
// 性别构成
export function gender_list(payload = {}) {
    return server.get('/xfy/api/gender', { params: payload })
}
// 服务包使用情况
export function datafw(payload = {}) {
    return server.get('/xfy/api/datafw', { params: payload })
}
// 高血压居民标签
export function databq(payload = {}) {
    return server.get('/xfy/api/databq', { params: payload })
}
// -------------------下拉框------------------------
// 机构列表
export function optionlist(payload = {}) {
    return server.get('/xfy/api/optionlist', { params: payload })
}
// 医生团队
export function teamlist(payload = {}) {
    return server.get('/xfy/api/teamlist', { params: payload })
}
// 医生列表
export function teamlistwo(payload = {}) {
    return server.get('/xfy/api/teamlistwo', { params: payload })
}
// export function option(payload = {}) {
//     return server.get('/api/optionlist', { params: payload })
// }
// // 医生团队
// export function team(payload = {}) {
//     return server.get('/api/teamlist', { params: payload })
// }
// // 医生列表
// export function teams(payload = {}) {
//     return server.get('/api/teamlistwo', { params: payload })
// }
// 血糖信息列表
export function healthlist(payload = {}) {
    return server.get('/xfy/api/healthlist', { params: payload })
}
// ========-----------签约统计------------==
//  签约数据列表
export function sign_list(payload = {}) {
    return server.get('/xfy/api/sign', { params: payload })
}

// 查询签约数据
export function sign_search(payload = {}) {
    return server.get('/xfy/api/mechanismSearch', { params: payload })
}
// ----------服务统计-------------------
// // 服务数据
export function sever_list(payload = {}) {
    return server.get('/xfy/api/sever', { params: payload })
} 
// 搜索服务详情
export function sever_search(payload = {}) {
    return server.get('/xfy/api/serviceSearch', { params: payload })
}
// 搜索标签详情
export function tagDateSearch(payload = {}) {
    return server.get('/xfy/api/tagDataSearch', { params: payload })
}
// 搜索学历详情
export function educationDataSearch(payload = {}) {
    return server.get('/xfy/api/educationDataSearch', { params: payload })
}
// 搜索年龄详情
export function ageDataSearch(payload = {}) {
    return server.get('/xfy/api/ageDataSearch', { params: payload })
}
// 搜索性别详情
export function genderSearch(payload = {}) {
    return server.get('/xfy/api/genderDataSearch', { params: payload })
}
// ====================================
// 健康详情
export function heather_list(payload = {}) {
    return server.get('/api/heather', { params: payload })
}
// 搜索健康详情
export function heather_search(payload = {}) {
    return server.get('api/heather', { params: payload })
}
// 搜索居民  /api/searchResident
export function SearchResident(payload: any = {}) {
     return server.get("/wt/api/searchResident", { params: payload })
}

// ===========居民标签统计====================
// 居民标签统计
export function label_list(payload = {}) {
    return server.get('/xfy/api/label', { params: payload })
}
// ============系统设置===============

//获取操作日志列表
export function handle_list(payload = {}) {
    return server.get('/cxy/api/findAllJournal', { params: payload })
}
// 搜索操作日志列表
export function handleSearch(payload = {}) {
    return server.post('/cxy/api/findAllJournalName', payload)
}

//查询全部系统公告
export function notice_list(payload = {}) {
    return server.get('/cxy/api/findAllNotice', { params: payload })
}
//删除系统列表
export function notice_delete(payload: any = {}) {
    return server.delete('/cxy/api/deleteNotice', { params: payload })
}
//添加系统公告
export function notice_add(payload = {}) {
    return server.post('/cxy/api/addNotice', payload)
}
// 搜索系统列表
export function noticeSearch(payload = {}) {
    return server.post('/cxy/api/findAllNoticeName', payload)
}
//编辑系统公告
export function notice_update(payload: any = {}) {
    // var { id, ...data } = payload
    return server.put('/cxy/api/updateNotice', payload)
}
// 协议管理
export function agreedata(payload = {}) {
    return server.get('/cxy/api/findAllAgreement', { params: payload })
}
// 模拟
// export function moni(payload = {}) {
//     return server.get('/api/echartsda', { params: payload })
// }